INET::UploadedFile SaveToFile Method
Syntax
.SaveToFile as L (C DestinationFile [, L Append = .f.])
Arguments
- DestinationFileCharacter
The name of the file to create or append to on the server.
- AppendLogical
Default = .F.. If .t. and the file exists on the server, data will be appended to the file. If .F., the file will be overwritten.
Returns
- ResultLogical
Returns .T. if the operation succeeds, otherwise .F. (see .CallResult for additional error information.)
Description
Save the data to the storage member requested
Example
function uploadFile as L (FileToUpload as INET::UploadedFile) dim Filepath as c = "C:\myapp\data\uploadedFiles\\" uploaded = FileToUpload.SaveToFile(Filepath + FileToUpload.Filename) end if
See Also